<p> Wording: <%= @question.wording %>                   </p>
<p> Type: <%= @question.kind %>                         </p>
<p> Recommended maximum time: <%= pluralize(@minutes, 'minute') + (@seconds > 0?' ' + pluralize(@seconds, 'second'):'') %> </p>
<p> Difficulty: <%= @question.difficulty %>             </p>
<p> Created at: <%= @question.created_at.to_formatted_s(:short) %> </p>
<p> Created by: <%= @question.user.login %>             </p>
<div id=answers>
  <h2> Answers: </h2>
  <ul>
    <% for answer in @question.answers.sort {|a,b| a.order <=> b.order} %>
    <li> Answer: <%= answer.text %> (score: <%= answer.score %>) </li>
  <% end %>
  </ul>
</div>
<div id=categories>
  <h2> Categories: </h2>
  <ul>
  <% for category in @question_categories %>
    <li>  <%= category.name %> </li>
  <% end %>
  </ul>
</div>

<div id=links_section>
  <%= link_to 'Edit question', edit_question_path(@question) %>
  <%= link_to 'Remove question', question_path(@question), :confirm => 'Are you sure?', :method => :delete %>
  <%= link_to 'Back to \'List of Questions\'', questions_path %>
</div>